<script>
export default {
  props: ['list']
}
</script>
<template>
  <scroller class="horizontal_scroll_view" scroll-direction="horizontal">
    <div class="cell" v-for="(item,$index) in list" :key="$index">
      <image class="img" :src="item.img_url"></image>
      <text class="title title2">{{item.desc}}</text>
      <text class="desc">{{item.favor_desc}}</text>
    </div>
  </scroller>
</template>
<style src="./common.css" scoped></style>
<style scoped>
.horizontal_scroll_view {
  flex-direction: row;
  padding-top: 15px;
}

.cell {
  width: 430px;
  margin-right: 25px;
  padding-bottom: 10px;
}

.title {
  font-size: 30px;
  color: #333;
  margin-top: 10px;
  margin-left: 20px;
  lines: 1;
  text-overflow: ellipsis;
}

.img {
  width: 430px;
  height: 280px;
}
</style>
